import { reactive } from "vue";
import type { FormRules } from "element-plus";

/** 自定义表单规则校验 */
export const formRules = reactive(<FormRules>{
  supplierName: [
    { required: true, message: "请输入供应商名称", trigger: "blur" }
  ],
  contacts: [{ required: true, message: "请输入联系人", trigger: "blur" }],
  contact: [{ required: true, message: "请输入联系方式", trigger: "blur" }],
  type: [{ required: true, message: "请选择供应商类型", trigger: "change" }],
  supplierCode: [
    { required: true, message: "请输入供应商编码", trigger: "blur" }
  ]
});
